package com.loocup.demo1.config;

import com.loocup.demo1.bean.HelloSpring;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean(name = "helloSpring")
    public HelloSpring helloSpring(){
        HelloSpring helloSpring = new HelloSpring();
        helloSpring.setAge(10);
        helloSpring.setName("jack");
        return helloSpring;
    }
}
